using System;
using System.Collections.Generic;
using System.Text;

namespace SoinusLibrary
{
    public delegate void ExitEventHandler(Object sender, ExitEventArgs e);

    public class ExitEventArgs : System.EventArgs
    {
        private int code;
        public int Code
        {
            get { return code; }
            set { code = value; }
        }

        private string message;
        public string Message
        {
            get { return message; }
            set { message = value; }
        }

        public ExitEventArgs()
        {
        }

        public ExitEventArgs(int pCode)
            : this()
        {
            Code = pCode;
        }

        public ExitEventArgs(int pCode, string pMessage)
            : this (pCode)
        {            
            Message = pMessage;
        }

    }
}
